package com.beta.rabbit.api;

import java.util.List;

public interface MessageProducer {
    /**
     * 消息发送,附带callback执行响应回调
     */
    void send(Message message, SendCallback sendCallback) throws MessageRuntimeException;

    /**
     * 消息发送
     */
    void send(Message message) throws MessageRuntimeException;

    /**
     * 消息批量发送
     */
    void send(List<Message> messages) throws MessageRuntimeException;
}
